import request from '@/utils/request'

export function findUser(data) {
    return request({
        url: 'http://localhost:8081/rbac/user/find',
        method: 'post',
        data
    })
}

export function saveUser(data) {
    return request({
        url: 'http://localhost:8081/rbac/user/save',
        method: 'post',
        data
    })
}

export function updateUser(data) {
    return request({
        url: 'http://localhost:8081/rbac/user/update',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    return request({
        url: 'http://localhost:8081/rbac/user/delete',
        method: 'post',
        data
    })
}

export function updateUserStatus(data) {
    return request({
        url: 'http://localhost:8081/rbac/user/updateStatus',
        method: 'post',
        data
    })
}
